if (local serveur) then
	{
	if (blufor_vts) then 
		{
		_repere = _this select 0 ;
		_distance = _this select 1;
	
		while {true} do
			{
			for[{_i=1},{_i<=nbre_joueursX},{_i=_i+1}] do
				{
				call compile format["if (user%1 distance _repere < _distance) then {_boum= ""GrenadeHand"" createVehicle [(getpos user%1 select 0)+((random 5)-(random 5)), (getpos user%1 select 1)+((random 5)-(random 5)),0] ;};",_i];
				sleep 0.2 ;
				};
			sleep 1.5;
			};
		};
		
	if (opfor_vts) then 
		{
		_repere = _this select 0 ;
		_distance = _this select 1;
	
		while {true} do
			{
			for[{_i=1},{_i<=nbre_joueursX},{_i=_i+1}] do
				{
				call compile format["if (joueure%1 distance _repere < _distance) then {_boum= ""GrenadeHand"" createVehicle [(getpos joueure%1 select 0)+((random 5)-(random 5)), (getpos joueure%1 select 1)+((random 5)-(random 5)),0] ;};",_i];
				sleep 0.2 ;
				};
			sleep 1.5;
			};
		};
		
	if (inde_vts) then 
		{
		_repere = _this select 0 ;
		_distance = _this select 1;
	
		while {true} do
			{
			for[{_i=1},{_i<=nbre_joueursX},{_i=_i+1}] do
				{
				call compile format["if (joueuri%1 distance _repere < _distance) then {_boum= ""GrenadeHand"" createVehicle [(getpos joueuri%1 select 0)+((random 5)-(random 5)), (getpos joueuri%1 select 1)+((random 5)-(random 5)),0] ;};",_i];
				sleep 0.2 ;
				};
			sleep 1.5;
			};
		};
		
	};
	if (true) exitWith {};
